package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 此为行政区划对象 olive_region
 * 
 * @author ruoyi
 * @date 2024-10-29
 */
public class OliveRegion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 行政区划id */
    private Long regionId;

    /** 行政区划名称 */
    @Excel(name = "行政区划名称")
    private String regionName;

    /** 所属父级区划id */
    @Excel(name = "所属父级区划id")
    private Long parentId;

    /** 所属等级 */
    @Excel(name = "所属等级")
    private Long level;

    public void setRegionId(Long regionId) 
    {
        this.regionId = regionId;
    }

    public Long getRegionId() 
    {
        return regionId;
    }
    public void setRegionName(String regionName) 
    {
        this.regionName = regionName;
    }

    public String getRegionName() 
    {
        return regionName;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("regionId", getRegionId())
            .append("regionName", getRegionName())
            .append("parentId", getParentId())
            .append("level", getLevel())
            .toString();
    }
}
